package net.zjitc.utils;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

/**
 * Created by hasee on 2017/11/18.
 */
public class C3P0Utils {
    public static ComboPooledDataSource cpds = new ComboPooledDataSource();
    public static DataSource getDataSource(){
        return cpds;
    }
    public static Connection getConeection() throws SQLException {
        return cpds.getConnection();
    }
}
